#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export LD_LIBRARY_PATH=${DIR}
ARG1="parse(load('${DIR}/base.tyle'))!"

if [ "$1" != "" ]; then
	if [ -e $1 ]; then
		${DIR}/tyle ${ARG1} "putline(include('$1'))"
	else
		${DIR}/tyle ${ARG1} $* "shell!"
	fi
else
${DIR}/tyle ${ARG1} "shell!"
fi
